cmake_minimum_required(VERSION 3.0)

project(HOMEWORK_MANAGEMENT)

#使能test
enable_testing()
#声明项目根路经目录变量
set(PROJECT_ROOT ${CMAKE_CURRENT_SOURCE_DIR})

SET(CMAKE_BUILD_TYPE "Debug")

#add source file
file(GLOB SRC_LIST "custom_function/*.cpp")

#add incldue
include_directories(include)

add_executable(main_cmake main.cpp ${SRC_LIST})

#设置编译参数选项
option(BUILD_TEST "是否Builds test!!,默认OFF" OFF)
if(BUILD_TEST)
add_subdirectory(tests)
endif()
